package dk.cs.wolverine.client;

import java.util.ArrayList;

import com.google.gwt.user.client.rpc.AsyncCallback;

import dk.cs.wolverine.shared.Question;
import dk.cs.wolverine.shared.ResultSet;
import dk.cs.wolverine.shared.Section;

public interface QuestionnaireServiceAsync {
	void getResultSet(String user, AsyncCallback<ResultSet> callback);

	void getSections(AsyncCallback<ArrayList<Section>> callback);
	
	void getResultSets(AsyncCallback<ArrayList<ResultSet>> callback);

	void addAnswer(Question question, String answer,
			AsyncCallback<Void> callback);

	void addTextQuestion(Section section, String name,
			AsyncCallback<Void> callback);

	void addSelectionQuestion(Section section, String name,
			ArrayList<String> answers, AsyncCallback<Void> callback);

	void addSection(Section section, AsyncCallback<Void> callback);
}